home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / components / OSButtonBarHBox.as < prev   
Encoding:
Text File  |  2008-10-29  |  558 b   |  25 lines

  1. package components
  2. {
  3.    import flash.display.DisplayObject;
  4.    import flash.system.Capabilities;
  5.    import mx.containers.HBox;
  6.    
  7.    public class OSButtonBarHBox extends HBox
  8.    {
  9.       public function OSButtonBarHBox()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       override public function getChildAt(param1:int) : DisplayObject
  15.       {
  16.          if(Capabilities.os.indexOf("Mac") >= 0)
  17.          {
  18.             return super.getChildAt(numChildren - (param1 + 1));
  19.          }
  20.          return super.getChildAt(param1);
  21.       }
  22.    }
  23. }
  24.  
  25.